<div class="sign">
	<div class="box">
		<div class="title">
			<div event-click="{{'$Event.changToSign_in'}}" class="item {{is_sign_up&&'focus'}}">登陆</div>
			<div event-click="{{'$Event.changToSign_up'}}" class="item {{is_sign_up||'focus'}}">注册</div>
		</div>
		<div class="table">
			<div class="sign_in {{is_sign_up&&'focus'}}">
				<div class="item">
					<input value="{{$Cache.sign_in.name}}" bind-input="{{'$Cache.sign_in.name'}}" placeholder="用户名/手机号" type="text" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_in.password}}" bind-input="{{'$Cache.sign_in.password'}}" placeholder="密码" type="password" event-enter="{{'$Event.sign_in.login'}}" />
				</div>
			</div>
			 <div class="sign_up {{is_sign_up||'focus'}}">
				 <div class="item">
					<input value="{{$Cache.sign_up.name}}" bind-input="{{'$Cache.sign_up.name'}}" placeholder="用户名" type="text" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_up.mobile_phone}}" bind-input="{{'$Cache.sign_up.mobile_phone'}}" placeholder="手机号" type="text" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_up.email}}" bind-input="{{'$Cache.sign_up.email'}}" event-change="{{'$Event.sign_up.checkedEmail'}}" placeholder="邮箱" type="text" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_up.password}}" bind-input="{{'$Cache.sign_up.password'}}" placeholder="密码" type="password" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_up.confirm_password}}" bind-input="{{'$Cache.sign_up.confirm_password'}}" placeholder="请再次输入密码" type="password" />
				</div>
				<div class="item">
					<input value="{{$Cache.sign_up.phone_code}}" bind-input="{{'$Cache.sign_up.phone_code'}}" placeholder="验证码" type="text" />
				</div>
				<div class="item">
					{{#if $Cache.sign_up.next_phone_code_time}}
					<a>
						{{$Cache.sign_up.next_phone_code_time}}秒后重新获取验证码
					</a>
					{{#else}}
					<a event-click="{{'$Event.sign_up.get_register_code'}}">
						获取验证码
					</a>
					{{/if}}
				</div>
			 </div>
		</div>
	</div>
	{{#if is_sign_up}}
	<div class="btn">
		注册
	</div>
	{{#else}}
	<div class="btn" event-click="{{'$Event.sign_in.login'}}">
		登陆
	</div>
	{{/if}}
</div>
<link rel="stylesheet" type="text/css" href="/css/catering/pc_sign.css" />